@import "../utils/color";

.recommend-scroll-h {
  width: 100%;
  height: 100%;

  .scroll-list {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 50px;
  }
}

.recommend-tab {
  position: absolute;
  width: 250px;
  height: 250px;
  margin-right: 30px;

  &.fe-focus {
    .recommend-tab-photo {
      transform: scale(1.05);
      border: 5px solid $primary;

      .photo-mask {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 100%;
        background-color: rgba($black, 0.5);
      }

      .play-icon {
        z-index: 2;
        display: block;
      }
    }

    .text-mask {
      display: none;
    }
  }

  &.big-horizontal {
    top: 0;
    left: 0;
    width: 520px;
    height: 250px;
  }

  &.big-vertical {
    top: 0;
    left: 540px;
    width: 250px;
    height: 520px;
  }

  &-photo {
    position: absolute;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    height: 100%;
    border-radius: 5px;

    .play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      display: none;
      transform: translate(-50%, -50%);
    }

    &-img {
      position: absolute;
      width: 100%;
      height: 100%;
    }
  }

  &-free-zone {
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    top: 16px;
    left: 16px;
    color: $white;
  }

  &-listen {
    font-size: 40px;
    position: absolute;
    bottom: 16px;
    left: 16px;
  }

  &-inner {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 64px;

    .marquee-truncate {
      font-size: 32px;
      position: absolute;
      z-index: 1;
      bottom: 16px;
      width: 100%;
      padding: 0 16px;
      text-align: center;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .text-mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: linear-gradient(rgba(#000, 0.01), rgba(#000, 0.5));
    }
  }
}
